Make your first Dynamics 365 CRM Plugin without the “Power Platform Solution Template” Extension by Microsoft

Intro

In the previous Microsoft Business App series article, we explored creating a plugin using the “Power Platform Tools for VS 2022 Extension” tool. However, it’s worth noting that we can also develop a plugin without this tool in case it encounters any issues or isn’t suited to our specific needs.

🧩 So let’s get started!

Requirements

You will need:

  • Visual Studio 2019 or 2022
  • .NET Framework 4.6.2
  • Plugin Registration Tool

Steps

New Project

Open Visual Studio and press “Continue without code”.

Search for “Class Library (.NET Framework)” and then choose it and press “Next”.

It’s critical to select “Class Library (.NET Framework)” and not the basic “Class Library”.

Give a proper “Project Name”, select “.NET Framework 4.6.2” and press “Create”.

Your solution is now ready and looks like this:

Microsoft.CrmSdk.CoreAssemblies NuGet Package

In Solution Explorer, right-click the name of the namespace and then press “Manage NuGet Packages…”.

There, press “Browse” and in the search bar write “Microsoft.CrmSdk.CoreAssemblies”.

On the right panel, press “Install”.

Once you are OK, you can click on Accept.

Next, you also get a chance to look at the licensing terms before you accept them.

Signing

These steps are the same as you created the plugin with the “Power Platform Tools for VS 2022 Extension” tool.

So, right-click in the namespace and select “Properties”.

Go to Signing, and tick the “Sign the assembly” check box.

Then select “<New…>”, give a name to the key file name, unselect the box for the password, and press “OK”.

Ready!

Building

Build the solution by right-clicking the Solution and selecting “Build Solution”.

Plugin Registration Tool

To register the plug-in and the steps, download a helpful tool, the Plugin Registration Tool.

After signing in, select “Register” → “Register New …”.

New Assembly

Load the assembly you have created, mark the boxes, and press “Register Selected Plugins”.

Closing

Now that you have the basics down, you are ready to start writing your code. Remember not to be afraid to experiment. The possibilities are endless!

Dive into the exciting world of Dynamics 365 CRM plugin development and unlock the platform’s true power. Plugins are like the secret weapons of your CRM toolkit, letting you automate tasks, make CRM work your way, and connect it to other systems like a charm.

This guide has taken the mystery out of plugin development, giving you the knowledge and confidence to start building your own plugins. As you explore the wonders of Dynamics 365 CRM customization, you’ll discover endless possibilities to tailor your CRM to your specific business needs.

If you have any questions or need help along your plugin development journey, don’t hesitate to reach out. Happy coding, and get ready to transform your Dynamics 365 CRM experience! 👋